<h1><?php echo Yii::t('site','Administration Overview'); ?></h1>

<?php
$this->breadcrumbs=array(
    Yii::t('site','Admin Overview'),
);
$numUsers       = User::model()->count();
$numAuthItems   = AuthItem::model()->count();
$numLookups     = Lookup::model()->count();
?>

<div class="block">
    <!-- {{{ Left Block -->
    <div class="column span-9">
        <h2><?php echo Yii::t('site','Users & Authorizations'); ?></h2>
        <ul>
            <li>
                <?php echo Yii::t('site','1#Currently there is one User in the system.|n>1#Currently there are {numUsers} Users in the system.',array($numUsers, '{numUsers}'=>$numUsers)); ?><br/>
                <?php echo CHtml::link(CHtml::encode(Yii::t('site','Manage Users')),array('user/admin')); ?>&nbsp;&nbsp;&nbsp;
                <?php echo CHtml::link(CHtml::encode(Yii::t('site','New User')),array('user/create')); ?>
            </li>
            <li>
                <?php echo Yii::t('site','1#Currently there is one Authorization Item in the system.|n>1#Currently there are {numAuthItems} Authorization Items in the system.',array($numAuthItems, '{numAuthItems}'=>$numAuthItems)); ?><br/>
                <?php echo CHtml::link(CHtml::encode(Yii::t('site','Manage Auth Items')),array('auth/admin')); ?>
            </li>
        </ul>
    </div>
    <!-- }}} -->
    <div class="column span-1">&nbsp;</div>
    <!-- {{{ Right Block -->
    <div class="column span-9 last">
        <h2><?php echo Yii::t('site','Miscelaneous Settings'); ?></h2>

        <h3><?php echo Yii::t('site','Lookup Values'); ?></h3>
        <ul>
            <li>
                <?php echo Yii::t('site','1#Currently there is one Lookup Value in the system.|n>1#Currently there are {numLookups} Lookup Values in the system.',array($numLookups, '{numLookups}'=>$numLookups)); ?><br/>
                <?php echo CHtml::link(CHtml::encode(Yii::t('site','Manage Lookups')),array('lookup/admin')); ?>
            </li>
        </ul>        

        <!--  
        <h3><?php echo Yii::t('site','Data Imports'); ?></h3>
        <ul>
            <li><?php echo CHtml::link(Yii::t('site','Overview'),array('/admin/import')); ?></li>
        </ul> -->

        <h3><?php echo Yii::t('site','Development'); ?></h3>
        <ul>
            <li><?php echo CHtml::link(Yii::t('site','DB Change Scripts'),array('dbChangeScripts/index')); ?></li>
            <li><?php echo CHtml::link(Yii::t('site','Gii Code Generator'),array('/gii')); ?></li>
        </ul>
    </div>
    <!-- }}} -->
</div>


